<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Hello World!</title>
</head>
<body>
<p>${name}</p>
<hr>
<#--<p>${stu1.name}</p>-->
<#--<p>${stu1.age}</p>-->
<hr>
<table>
    <tr>
        <td>编号</td>
        <td>名称</td>
        <td>余额</td>
        <td>年龄</td>
        <td>出生日期</td>
    </tr>
    <#if stus??>
        <#list stus as stu>
            <#if (stu.name ! 'Empty')="小红">
                <tr style="color: red">
                    <td>${stu_index + 1}</td>
                    <td>${stu.name ! 'Empty'}</td>
                    <td>${stu.money  ! 0}</td>
                    <td>${stu.age?string  ! "暂无数据"}</td>
                    <td>${(stu.birthday?string('yyyy-MM-ddHH:mm:ss')) ! "暂无数据"}</td>
                </tr>
            <#else>
                <tr>
                    <td>${stu_index + 1}</td>
                    <td>${stu.name ! 'Empty'}</td>
                    <td>${stu.money  ! 0}</td>
                    <td>${stu.age?string  ! '暂无数据'}</td>
                    <td>${(stu.birthday?string('yyyy-MM-dd HH:mm:ss')) ! "暂无数据"}</td>
                </tr>
            </#if>
        </#list>
    </#if>
</table>
<hr>
<table>
    <tr>
        <td>编号</td>
        <td>名称</td>
        <td>余额</td>
        <td>年龄</td>
        <td>出生日期</td>
    </tr>
    <#if stuMap??>
        <#list stuMap ? keys as key>
            <tr>
                <td>${key_index + 1}</td>
                <td>${(stuMap[key].name) ! 'Empty'}</td>
                <td>${(stuMap[key].money) ! 'Empty'}</td>
                <td>${(stuMap[key].age) ! 'Empty'}</td>
                <td>${(stuMap[key].birthday?string('yyyy-MM-dd HH:mm:ss')) ! "暂无数据"}</td>
            </tr>
        </#list>
    </#if>
</table>
<hr>
<#list stuMapTest ? keys as key>
    <p>${stuMapTest[key].name!}</p>
    <p>${stuMapTest[key].age!}</p>
</#list>

</body>
</html>